#pragma once
#include <WinSock2.h>
#include "MyArray.h"
#include "ServerClient.h"

class Server
{
	SOCKET serverSocket;
	sockaddr_in myAddress;
	MyArray<ServerClient*> clients;
	void myError(string);
	void log(string);
public:
	Server(void);
	~Server(void);
	void start(int);
	void Listen();
	void sendToAll(char[]);
	void disconnectUser(ServerClient*);
	void sendUserList();
};

